package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Lxr;
import com.hnkywl.sts.entity.base.Sjzdz;
import org.hibernate.annotations.Where;


import javax.persistence.*;

/**
 * 说明：运输工具
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:   运输工具
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name="T_SYS_YSGJ")
@Where(clause = "deleted!='1'")
public class Ysgj extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqYsgj", allocationSize = 1, sequenceName = "SEQ_SYS_QSGJ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqYsgj")
    private Long id;

    /**
     * 运输工具类型
     */
    @ManyToOne
    @JoinColumn(name="SJZDZ_YSGJLX_ID")
    private Sjzdz ysgjlx;

    /**
     * 运输工具识别码
     */
    private String ysgjsbm;

    /**
     * gps
     */
    private String gps;

    /**
     * 驾驶员姓名
     */
    private String xm;

    /**
     * 驾驶员手机号码
     */
    private String sjhm;

    @ManyToOne
    @JoinColumn(name="WLS_ID")
    private Wls wls;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Sjzdz getYsgjlx() {
        return ysgjlx;
    }

    public void setYsgjlx(Sjzdz ysgjlx) {
        this.ysgjlx = ysgjlx;
    }

    public String getYsgjsbm() {
        return ysgjsbm;
    }

    public void setYsgjsbm(String ysgjsbm) {
        this.ysgjsbm = ysgjsbm;
    }

    public String getGps() {
        return gps;
    }

    public void setGps(String gps) {
        this.gps = gps;
    }

    public Wls getWls() {
        return wls;
    }

    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    public String getSjhm() {
        return sjhm;
    }

    public void setSjhm(String sjhm) {
        this.sjhm = sjhm;
    }

    public void setWls(Wls wls) {
        this.wls = wls;
    }
}
